define(function (require) {
    var app = require('app');
	//配置路由
    app.config(function ($stateProvider, $urlRouterProvider) {
        
        $stateProvider.state('security_user',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/user/user.html',
                    controllerUrl:  'module/security/user/user',
                    controller:     'userCtrl'
                }
            }
        });

        $stateProvider.state('security_role',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/role/role.html',
                    controllerUrl:  'module/security/role/role',
                    controller:     'roleCtrl'
                }
            }
        });
        $stateProvider.state('security_roleentrust',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/role/roleentrust.html'
                }
            }
        });

        $stateProvider.state('security_organization',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/organize/organization.html'
                }
            }
        });
        
        $stateProvider.state('security_administrative',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/organize/administrative.html'
                }
            }
        });

         $stateProvider.state('security_department',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/organize/department.html',
                    controllerUrl:  'module/security/organize/department',
                    controller:     'depCtrl'
                }
            }
        });

         $stateProvider.state('security_operatingPost',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/organize/operatingPost.html',
                    controllerUrl:  'module/security/organize/operatingPost',
                    controller:     'operatingPostCtrl'
                }
            }
        });

         $stateProvider.state('security_position',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/organize/position.html',
                    controllerUrl:  'module/security/organize/position',
                    controller:     'positionCtrl'
                }
            }
        });

         $stateProvider.state('security_workingGroup',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/organize/workingGroup.html',
                    controllerUrl:  'module/security/organize/workingGroup',
                    controller:     'workingGroupCtrl'
                }
            }
        });

        $stateProvider.state('security_menujurisdiction',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/jurisdiction/menu.html',
                    controllerUrl:  'module/security/jurisdiction/jurisdiction',
                    controller:     'jurisdictionCtrl'
                }
            }
        });
        $stateProvider.state('security_datajurisdiction',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/jurisdiction/data.html',
                    controllerUrl:  'module/security/jurisdiction/jurisdiction',
                    controller:     'jurisdictionCtrl'
                }
            }
        });
        $stateProvider.state('security_mapextentjurisdiction',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/jurisdiction/mapextent.html',
                    controllerUrl:  'module/security/jurisdiction/jurisdiction',
                    controller:     'jurisdictionCtrl'
                }
            }
        });
        $stateProvider.state('security_maplayerjurisdiction',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/jurisdiction/maplayer.html',
                    controllerUrl:  'module/security/jurisdiction/jurisdiction',
                    controller:     'jurisdictionCtrl'
                }
            }
        });

        $stateProvider.state('security_service',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/jurisdiction/service.html',
                    controllerUrl:  'module/security/jurisdiction/service',
                    controller:     'serviceCtrl'
                }
            }
        });

        $stateProvider.state('signin_logging',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/log/signin_logging.html'
                }
            }
        });

        $stateProvider.state('visit_logging',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/log/visit_logging.html'
                }
            }
        });

        $stateProvider.state('form_dic',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/form/dictionarys/dictionarys.html',
                    controllerUrl:  'module/form/dictionarys/dictionarys',
                    controller:     'dictionarysCtrl'
                }
            }
        });

        $stateProvider.state('form_metadata',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/form/metadata/metadata.html',
                    controllerUrl:  'module/form/metadata/metadata',
                    controller:     'metadataCtrl'
                }
            }
        });

        $stateProvider.state('form_metadata_name',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/form/metadata/metadataname.html'
                }
            }
        });

        $stateProvider.state('form_dic_name',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/form/dictionarys/dictionarynames.html'
                }
            }
        });

        $stateProvider.state('gis_layerconfig',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/gis/layerconfig/layerconfig.html'
                }
            }
        });

        $stateProvider.state('gis_mapconfig',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/gis/mapconfig/mapconfig.html'
                }
            }
        });

        $stateProvider.state('arcgis_attribute',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/search/attribute.html'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_space',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/search/space.html'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_find',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/search/find.html'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_identify',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/search/identify.html'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_book',{
            views: {
                'model': {
                    templateUrl:    'module/arcgis/locator/book.html',
                    controllerUrl:  'module/arcgis/locator/book',
                    controller:     'bookCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_coordinate',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/locator/coordinate.html'
                },
                'panel': {
                    template: ''
                }
            }
        });
        
        $stateProvider.state('analysis_gps',{
            views: {
                'model': {
                    templateUrl: 'module/analysis/gps/gps.html',
                    controllerUrl:  'module/analysis/gps/gps',
                    controller:'analysis_gpsCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        
        $stateProvider.state('analysis_cad',{
            views: {
                'model': {
                    templateUrl: 'module/analysis/cad/cad.html'
                },
                'panel': {
                    template: ''
                }
            }
        });
        
        $stateProvider.state('analysis_select',{
            views: {
                'model': {
                    templateUrl: 'module/analysis/select/select.html'
                },
                'panel': {
                    template: ''
                }
            }
        });
        
        $stateProvider.state('analysis_draw',{
            views: {
                'model': {
                    templateUrl: 'module/analysis/draw/draw.html'
                },
                'panel': {
                    template: ''
                }
            }
        });
    })
});